cmake_minimum_required(VERSION 3.10)
project(kcp_examples)

# 添加上级目录的kcp库
add_subdirectory(.. kcp_lib)

# 设置二进制文件输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 编译各个示例
add_executable(simple_test simple_test.cpp)
target_link_libraries(simple_test kcp)

add_executable(basic_test basic_test.cpp)
target_link_libraries(basic_test kcp)

add_executable(performance_test performance_test.cpp)
target_link_libraries(performance_test kcp)